# 库的仓库网址 https://github.com/fmtlib/fmt
# api ref 网址  https://fmt.dev/
fmtlib_path = $${PWD}/fmt

INCLUDEPATH += \
               $${fmtlib_path}/include

HEADERS += \
            $${fmtlib_path}/include/fmt/*.h


SOURCES += \
            $${fmtlib_path}/src/format.cc \
            $${fmtlib_path}/src/os.cc \

DEFINES += \
#           FMT_HEADER_ONLY \ #  是否使用header-only， 需要#include <..\src\format.cc>


#disable c4819 not unicode warning,
# VS2017必须加上 /utf-8才能正常点，要不头文件源文件都不能在正常识别(代码补全), 文件中的字符串可能会出现错误
msvc{
QMAKE_CFLAGS += /wd"4819" /utf-8
QMAKE_CXXFLAGS += /wd"4819" /utf-8
}

